class Foo {
  constructor(name: string) {}
}

class Foo {
  constructor(protected name: string) {}
}